import request from '@/utils/request'
/**
 * 用户登录
 * @param {loginForm} data 用户登录信息
 * @returns 登录结果
 */
export function login(data) {
  return request({
    url: '/sys/login',
    method: 'post',
    data
  })
}

export function userInfo() {
  return request({
    url: '/sys/profile',
    method: 'post'
  })
}
export function userPhoto(id) {
  return request({
    url: '/sys/user/' + id,
    method: 'get'
  })
}
export function getInfo(token) {
}
export function logout() {
}
